package mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pojo.MyUser;

import java.util.List;

/**
 * author: 李林凯
 * time:2025/6/16 13:58
 **/
@Mapper
public interface UserMapper {
    MyUser selectUserById(Integer id);//通过id查user
    List<MyUser> selectAllUser();//查所有user
    int insertUser(MyUser user);//增
    int updateUser(MyUser user);//改
    int deleteUserById(Integer id);//删
    List<MyUser> getUserByPage(@Param("offset") Integer page, @Param("limit") Integer limit);
    int getUserCount();
}
